csv_util.o strptime.o grtcirc.o vmem.o util_crc.o xmlgeneric.o \
uuid.o formspec.o xmltag.o cet.o cet_util.o \
$(COLDSYNC) $(GARMIN) $(JEEPS) $(SHAPE) $(FMTS) $(FILTERS)
-OBJS = main.o $(LIBOBJS)
+OBJS = main.o globals.o $(LIBOBJS)
.c.o:
$(CC) -c $(CFLAGS) $< $(OUTPUT_SWITCH)$@
gpsbabel: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LIBEXPAT) $(LIBUSB) -lm $(OUTPUT_SWITCH)$@
-main.o:
+globals.o:
$(CC) -c $(CFLAGS) -DVERSION=\"$(VERSIOND)\" $< $(OUTPUT_SWITCH)$@
clean:
geo.o: geo.c defs.h queue.h gbtypes.h xmlgeneric.h
geoniche.o: geoniche.c defs.h queue.h gbtypes.h coldsync/palm.h \
coldsync/pdb.h
+globals.o: globals.c defs.h queue.h gbtypes.h
glogbook.o: glogbook.c defs.h queue.h gbtypes.h xmlgeneric.h
google.o: google.c defs.h queue.h gbtypes.h xmlgeneric.h
gpilots.o: gpilots.c defs.h queue.h gbtypes.h coldsync/palm.h \
--- /dev/null
+/*
+ Global data for GSPBabel.
+
+ Copyright (C) 2005 Robert Lipe, robertlipe@usa.net
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
+
+ */
+
+
+#include "defs.h"
+
+global_options global_opts;
+const char gpsbabel_version[] = VERSION;
+
+
#include "cet_util.h"
#include <ctype.h>
-global_options global_opts;
-const char gpsbabel_version[] = VERSION;
-
static void
usage(const char *pname, int shorter)
{
printf("GPSBabel Version %s. http://www.gpsbabel.org\n\n",
- VERSION );
+ gpsbabel_version );
printf(
"Usage:\n"
" %s [options] -i INTYPE -f INFILE -o OUTTYPE -F OUTFILE\n"
}
if (argv[argn][1] == 'V' ) {
- printf("\nGPSBabel Version %s\n\n", VERSION );
+ printf("\nGPSBabel Version %s\n\n", gpsbabel_version );
exit(0);
}
* When debugging, announce version.
*/
if (global_opts.debug_level > 0) {
- warning("GPSBabel Version: " VERSION "\n" );
+ warning("GPSBabel Version: %s \n", gpsbabel_version );
}
break;